<%= form_for(@user) do |f| %>
    <% if @user.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

          <ul>
            <% @user.errors.full_messages.each do |message| %>
                <li><%= message %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="row">
      <div class="span6 offset3">

        <%= f.label :姓名 %><br>
        <%= f.text_field :name %>
        <%= f.submit class: "btn btn-large btn-primary"%>
      </div>
    </div>
<% end %>
